import com.vincent.common.utils.PasswordKeyUtil;
import org.htmlparser.util.ParserException;

/**
 * Created by Vincent on 2014/12/18.
 */
public class Demo {
    public static void main(String[] args) throws ParserException {
      /*  Demo1 demo1 = new Demo1();
        Demo2 demo2 = new Demo2();
        demo1.setDemo2(demo2);
        demo1.setId(1);
        demo2.setId(1);
        demo2.setDemo1(demo1);
        System.out.println(JSON.toJSONString(demo2, SerializerFeature.DisableCircularReferenceDetect));*/
        System.out.println(PasswordKeyUtil.getSaltPassword("M]BDQndgQNl~j@rcIiRbsUR\\k;~cvBCf2~Py8Fe|HlFGausmSF","123456"));

    }
}
class Demo1{
    private int id;
    private Demo2 demo2;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Demo2 getDemo2() {
        return demo2;
    }

    public void setDemo2(Demo2 demo2) {
        this.demo2 = demo2;
    }
}
class Demo2{
    private  int id;
    private Demo1 demo1;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Demo1 getDemo1() {
        return demo1;
    }

    public void setDemo1(Demo1 demo1) {
        this.demo1 = demo1;
    }
}